﻿@model List<HotDealD2.Models.ModelView.OrderDealView>
@{
    Layout = "../Shared/MemberLayout.cshtml";
}

@{
    ViewBag.Title = "Đơn Hàng Của Bạn";
    ViewBag.UserName = "member";
}

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<title>@ViewBag.Title</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="../../../../Content/HomeSite/scripts/jquery.placeholder.js" ></script>
<link type="text/css" media="screen" rel="stylesheet" href="../../../../Content/MemberSite/MemberStyle.css" />

<!--[if IE 6]>
<script type="text/javascript" src="scripts/DD_belatedPNG_0.0.7a.js"></script> 
<script type="text/javascript" src="scripts/png_fix_elements.js"></script> 
<![endif]-->

</head>

<div class="main">            
<div class="details-left">
       		<div class="headerstep">
            	<div class="title-step-history">
                	<ul class="navstep">
                    	<li id="stepprofile"><a href="../Member/Index">THÔNG TIN CÁ NHÂN</a></li>
                        <li id="stephistory"><span id="current">LỊCH SỬ MUA HÀNG</span></li>
                        <li>@Html.ActionLink("THAY ĐỔI MẬT KHẨU", "ChangePassword", "Account")</li>
                    </ul>
                </div>
            </div>
       		<div class="infoprodetails">
            <div class="account_content">
                <div class="account_item">                    
                    @foreach (var item in Model)
                    {
                    <table class="account_list" width="90%" border="0" cellspacing="0" cellpadding="0">
                        <tbody><tr>
                            <th style="width: 100px;" colspan="2" scope="col" align="center">
                                Phiếu/Sản phẩm
                            </th>
                            <th style="width: 135px;" align="center" scope="col">
                                Đơn giá
                            </th>
                            <th style="width: 135px;" align="center" scope="col">
                                Số lượng
                            </th>
                            <th style="width: 170px; margin-right" scope="col" align="center">
                                Thành tiền
                            </th>
                        </tr>
                            <tr>
                                <td colspan="2">
                                 @foreach (var a in item.DanhSachSanPham)
                                 {
                                    <a href="thuong-thuc-set-an-nhe-cung-do-uong-tuoi-ngon-cho-02-nguoi-co-phuc-vu-chieu-phim-3d-tai-nha-hang-the-o-cafe-hd-chi-voi-75000d">@Html.DisplayFor(m => a.Deal.TenDeal) <br /> </a>
                                 } </td>
                                <td align="center">
                                  @foreach (var a in item.DanhSachSanPham)
                                  {
                                    @Html.DisplayFor(m => a.Deal.GiaTien)<br />
                                  }
                                </td>
                                <td align="center">
                                 @foreach (var a in item.DanhSachSanPham)
                                 {
                                    @Html.DisplayFor(m => a.SoLuong)<br />
                                    
                                 }
                                </td>
                                <td align="right">
                                    @foreach (var a in item.DanhSachSanPham)
                                    {
                                       <strong>  @Html.DisplayFor(m => a.TongTien)</strong><br />
                                    
                                    }
                                </td>
                            </tr>                        
                        <tr>
                            <td colspan="4" align="right">
                                Phí giao hàng
                            </td>
                            <td align="right">
                                <strong>0đ </strong>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" align="right">
                                Số tiền phải trả
                            </td>
                            <td align="right">
                                <strong> @Html.DisplayFor(m => item.TongCong)</strong>
                            </td>
                        </tr>
                        <tr bgcolor="#EDEDEE">
                          
                            <td width="27%" align="center">
                                <strong>@Html.DisplayFor(m => item.TinhTrang)</strong>
                            </td>
                            <td colspan="3" align="center">
                                Hình thức thanh toán: <strong>@Html.DisplayFor(m => item.HinhThucThanhToan)</strong>
                            </td>
                        </tr>
                    </tbody></table><br /><br />
                    }
                </div>
                
        </div>
             </div>
            
       </div>
        <div class="clear"></div>		<div class="clear"></div>
</div>